package com.dhu719.label_end.controller;

import com.dhu719.label_end.domain.Image_info;
import com.dhu719.label_end.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/image", produces = {"application/json;charset=UTF-8"})
public class ImageController {
    @Autowired
    private ImageService imageService;

    @RequestMapping(value = "insert", method = RequestMethod.POST)
    public String insert(@RequestBody Image_info image_info){
        return imageService.insert(image_info);
    }
}
